#!/bin/bash

file=$1
filename=$(basename $file .tgz)

mkdir $filename
mv $file $filename/.
cd $filename
tar xvzf $file

list=$(ls -l | tail -1)
echo `expr substr $list 1 1`

